package com.easyCms.base.dao;

import com.easyCms.base.entity.AppApplyList;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.repository.PagingAndSortingRepository;

import java.util.List;

public interface AppApplyListDAO
        extends PagingAndSortingRepository<AppApplyList, Long>, JpaSpecificationExecutor<AppApplyList> {

    AppApplyList findByPhoneNumberAndState(String phoneNumber, int stateValid);

    List<AppApplyList> findByState(int state);

    List<AppApplyList> findByState(int state, Pageable pageAble);

    AppApplyList findByIdAndState(Long applyId, int state);

}
